package com.aaa.vegetablemarketexpress.service;

import com.aaa.vegetablemarketexpress.entity.Brand;
import com.aaa.vegetablemarketexpress.entity.Notice;
import com.aaa.vegetablemarketexpress.util.Page;
import com.github.pagehelper.PageInfo;

/**
 * @FileName: NoticeService
 * @Description:
 * @Author: 张钰哲
 * @CreateTime: 2025/9/13 15:18
 * @Version: 1.0.0
 */

public interface NoticeService {
    /**
     * 根据id查询
     * @param noticeId
     * @return
     */
    Notice getNoticeById(Long noticeId);

    /**
     * 分页查询
     * @param page
     * @return
     */
    PageInfo<Notice> queryByPage(Page<Notice> page);

    /**
     * 添加
     * @param notice
     * @return
     */
    int addNotice(Notice notice);

    /**
     * 修改
     * @param notice
     * @return
     */
    int updateNotice(Notice notice);

    /**
     * 删除
     * @param noticeId
     * @return
     */
    int deleteNoticeById(Long noticeId);

    /**
     * 浏览量
     * @param noticeId
     */
    Notice view(Long noticeId);
}
